﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Pro.Repository.Entites
{
    /// <summary>
    /// 商品评论
    /// </summary>
    [Table("pro_Review"), Comment("商品评论"),Index(nameof(GoodsId))]
    public class GoodsReview : EfEntity
    {
        /// <summary>
        /// 商品ID
        /// </summary>
        [Comment("商品ID")]
        public long GoodsId { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        [Comment("用户ID")]
        public long UserId { get; set; }

        /// <summary>
        /// 订单ID
        /// </summary>
        [Comment("订单ID")]
        public long? OrderId { get; set; }

        /// <summary>
        /// 好评级别(1：好评,2：中评,3：差评)
        /// </summary>
        [Comment("好评级别(1：好评,2：中评,3：差评)")]
        public int GoodGrade { get; set; }

        /// <summary>
        /// 视频地址
        /// </summary>
        [Comment("视频地址"), MaxLength(1000)]
        public string Video { get; set; }

        /// <summary>
        /// 图片地址
        /// </summary>
        [Comment("图片地址"), MaxLength(1000)]
        public string Image { get; set; }

        /// <summary>
        /// 评论
        /// </summary>
        [Comment("评论"),MaxLength(1000)]
        public string Content { get; set; }

        /// <summary>
        /// 服务打分
        /// </summary>
        [Comment("服务打分")]
        public int Serve { get; set; }

        /// <summary>
        /// 客服打分
        /// </summary>
        [Comment("客服打分")]
        public int Service { get; set; }

        /// <summary>
        /// 物流打分
        /// </summary>
        [Comment("物流打分")]
        public int Logistics { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime CreateTime { get; set; }
    }
}
